#pragma once

#include "../umlmodel_global.h"

#include "../uml/PackageableElement.h"

namespace uml {

/// <summary>
/// UMLStyle
/// The most general class for Styles in UML.
/// </summary>
class UMLMODEL_EXPORT UMLStyle : public PackageableElement {

public: // Constructors and destructors
    explicit UMLStyle(const QString& umlType="uml::UMLStyle");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// fontName getter
    /// Name of a font used to render strings.
    /// </summary>
    QString fontName() const;

    /// <summary>
    /// fontName setter
    /// Name of a font used to render strings.
    /// </summary>
    void setFontName(const QString& value);

    /// <summary>
    /// fontSize getter
    /// Size of a font for rendering strings, given in typographical points.
    /// </summary>
    double fontSize() const;

    /// <summary>
    /// fontSize setter
    /// Size of a font for rendering strings, given in typographical points.
    /// </summary>
    void setFontSize(double value);

private: // Fields
    /// <summary>
    /// fontName
    /// Name of a font used to render strings.
    /// </summary>
    const static QString fontName_default_;
    QString fontName_= fontName_default_;

    /// <summary>
    /// fontSize
    /// Size of a font for rendering strings, given in typographical points.
    /// </summary>
    const static double fontSize_default_;
    double fontSize_= fontSize_default_;

};

} // namespace uml
